<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Intern</title>
    <link rel="shortcut icon" type="image/png" href="favicon.png" />

    <!-- Hey you, listen up:
	    ____             _  __     __                   __
	   / __ \____  ____ ( )/ /_   / /_____  __  _______/ /_
	  / / / / __ \/ __ \|// __/  / __/ __ \/ / / / ___/ __ \
	 / /_/ / /_/ / / / / / /_   / /_/ /_/ / /_/ / /__/ / / /
	/_____/\____/_/ /_/  \__/   \__/\____/\__,_/\___/_/ /_/
	   __  __    _         _____ __     __
	  / /_/ /_  (_)____   / __(_) /__  / /  Direct modifications to rmeote.html are unsupported and will cause
	 / __/ __ \/ / ___/  / /_/ / / _ \/ /  Intern to break when you upgrade to a new version. If you need to
	/ /_/ / / / (__  )  / __/ / /  __/_/  add things to the page, do it from the `setup` or `before` method
	\__/_/ /_/_/____/  /_/ /_/_/\___(_)  of the test suite that needs those things. NEVER do it here!
		--></head>
  <body>
    <!-- Load intern code in the body because Html reporter needs a DOM -->
    <script src="browser/intern.js"></script>
    <script src="browser/config.js"></script>
    <script>
      internConfig
        .getConfig()
        .then(function (result) {
          var config = result.config;
          if (config.showConfigs) {
            console.log(getConfigDescription(config));
            return true;
          }

          if (!result.file) {
            console.warn('No config file was found');
          }

          // Add the HTML and console reporters to the default
          intern.configure({ reporters: ['html', 'console'] });
          intern.configure(config);
        })
        .then(
          function (skipTests) {
            if (skipTests) {
              return;
            }

            // Intern automatically reports run errors, so discard one if we get it
            intern.run().catch(function (_error) {});
          },
          function (error) {
            console.error('Error initializing Intern:', error);
          }
        );
    </script>
  </body>
</html>
